package com.xiaoyu.client.model.forum;

import java.util.List;

/**
 * Created by jk on 2018/10/22.
 */
public class ForumDetailBean {

    /**
     * code : y200
     * message : 成功
     * data : {"fourmcontent":{"fourmtitle":"1加精1","fourmimg":["http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/DE0AC6A1-4E93-4F9C-A38D-1341A7FCFD21.jpg","http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/641F724A-3048-4BD3-AE2E-CB5E8E90EF38.jpg","http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/DE0AC6A1-4E93-4F9C-A38D-1341A7FCFD21.jpg","http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/641F724A-3048-4BD3-AE2E-CB5E8E90EF38.jpg"],"fourmvideo":"","fourmtime":"2018-10-18","userid":"1","fourmress":"天津","fourmsum":"0","fourmgreeuser":[""],"fourmgood":"false","collection":"false"},"replay":[{"fourmreplayid":"2","fourmreplaytitle":"这是帖子的回复","fourmreplaytime":"2018-10-22","forumid":"2","userid":"1","pid":"0","nickname":"测试用户","userphoto":"http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg","fourmreplaygreeuser":[""],"fourmreplaygree":0,"good":"false","child":[{"fourmreplayid":"3","fourmreplaytitle":"这是第一条回复的回复","fourmreplaytime":"2018-10-22","forumid":"2","userid":"4","pid":"2","nickname":"ykb_80943","userphoto":"http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg","fourmreplaygreeuser":"","fourmreplaygree":0}],"replaycount":"1"}],"count":"1"}
     */

    private String code;
    private String message;
    private DataBean data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * fourmcontent : {"fourmtitle":"1加精1","fourmimg":["http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/DE0AC6A1-4E93-4F9C-A38D-1341A7FCFD21.jpg","http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/641F724A-3048-4BD3-AE2E-CB5E8E90EF38.jpg","http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/DE0AC6A1-4E93-4F9C-A38D-1341A7FCFD21.jpg","http://rh-gwc.oss-cn-beijing.aliyuncs.com/temp/641F724A-3048-4BD3-AE2E-CB5E8E90EF38.jpg"],"fourmvideo":"","fourmtime":"2018-10-18","userid":"1","fourmress":"天津","fourmsum":"0","fourmgreeuser":[""],"fourmgood":"false","collection":"false"}
         * replay : [{"fourmreplayid":"2","fourmreplaytitle":"这是帖子的回复","fourmreplaytime":"2018-10-22","forumid":"2","userid":"1","pid":"0","nickname":"测试用户","userphoto":"http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg","fourmreplaygreeuser":[""],"fourmreplaygree":0,"good":"false","child":[{"fourmreplayid":"3","fourmreplaytitle":"这是第一条回复的回复","fourmreplaytime":"2018-10-22","forumid":"2","userid":"4","pid":"2","nickname":"ykb_80943","userphoto":"http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg","fourmreplaygreeuser":"","fourmreplaygree":0}],"replaycount":"1"}]
         * count : 1
         */

        private ForumParam fourmcontent;//帖子内容
        private String count;//总页数
        private List<ForumReplayBean> replay;//帖子回复列表

        public ForumParam getFourmcontent() {
            return fourmcontent;
        }

        public void setFourmcontent(ForumParam fourmcontent) {
            this.fourmcontent = fourmcontent;
        }

        public int getCount() {
            return Integer.parseInt(count);
        }

        public void setCount(String count) {
            this.count = count;
        }

        public List<ForumReplayBean> getReplay() {
            return replay;
        }

        public void setReplay(List<ForumReplayBean> replay) {
            this.replay = replay;
        }

        public static class ForumReplayBean {
            /**
             * fourmreplayid : 2
             * fourmreplaytitle : 这是帖子的回复
             * fourmreplaytime : 2018-10-22
             * forumid : 2
             * userid : 1
             * pid : 0
             * nickname : 测试用户
             * userphoto : http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg
             * fourmreplaygreeuser : [""]
             * fourmreplaygree : 0
             * good : false
             * child : [{"fourmreplayid":"3","fourmreplaytitle":"这是第一条回复的回复","fourmreplaytime":"2018-10-22","forumid":"2","userid":"4","pid":"2","nickname":"ykb_80943","userphoto":"http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg","fourmreplaygreeuser":"","fourmreplaygree":0}]
             * replaycount : 1
             */

            private String fourmreplayid;//回复帖子id
            private String fourmreplaytitle;//回复帖子内容
            private String fourmreplaytime;//回复帖子时间
            private String forumid;//帖子id
            private String userid;//用户id
            private String pid;//
            private String nickname;
            private String userphoto;
            private String fourmreplaygree;//点赞数量
            private String good;//是否对该条回复点赞
            private String replaycount;//回帖的回复数量
            private List<String> fourmreplaygreeuser;
            private List<ForumChildBean> child;

            public String getFourmreplayid() {
                return fourmreplayid;
            }

            public void setFourmreplayid(String fourmreplayid) {
                this.fourmreplayid = fourmreplayid;
            }

            public String getFourmreplaytitle() {
                return fourmreplaytitle;
            }

            public void setFourmreplaytitle(String fourmreplaytitle) {
                this.fourmreplaytitle = fourmreplaytitle;
            }

            public String getFourmreplaytime() {
                return fourmreplaytime;
            }

            public void setFourmreplaytime(String fourmreplaytime) {
                this.fourmreplaytime = fourmreplaytime;
            }

            public String getForumid() {
                return forumid;
            }

            public void setForumid(String forumid) {
                this.forumid = forumid;
            }

            public String getUserid() {
                return userid;
            }

            public void setUserid(String userid) {
                this.userid = userid;
            }

            public String getPid() {
                return pid;
            }

            public void setPid(String pid) {
                this.pid = pid;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getUserphoto() {
                return userphoto;
            }

            public void setUserphoto(String userphoto) {
                this.userphoto = userphoto;
            }

            public int getFourmreplaygree() {
                return Integer.parseInt(fourmreplaygree);
            }

            public void setFourmreplaygree(String fourmreplaygree) {
                this.fourmreplaygree = fourmreplaygree;
            }

            public boolean isLike() {
                return good.equals("true") ? true : false;
            }

            public void setGood(String good) {
                this.good = good;
            }

            public String getReplaycount() {
                return replaycount;
            }

            public void setReplaycount(String replaycount) {
                this.replaycount = replaycount;
            }

            public List<String> getFourmreplaygreeuser() {
                return fourmreplaygreeuser;
            }

            public void setFourmreplaygreeuser(List<String> fourmreplaygreeuser) {
                this.fourmreplaygreeuser = fourmreplaygreeuser;
            }

            public List<ForumChildBean> getChild() {
                return child;
            }

            public void setChild(List<ForumChildBean> child) {
                this.child = child;
            }


            public static class ForumChildBean {
                /**
                 * fourmreplayid : 3
                 * fourmreplaytitle : 这是第一条回复的回复
                 * fourmreplaytime : 2018-10-22
                 * forumid : 2
                 * userid : 4
                 * pid : 2
                 * nickname : ykb_80943
                 * userphoto : http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg
                 * fourmreplaygreeuser :
                 * fourmreplaygree : 0
                 */

                private String fourmreplayid;
                private String fourmreplaytitle;
                private String fourmreplaytime;
                private String forumid;
                private String userid;
                private String pid;
                private String nickname;
                private String userphoto;
                private String fourmreplaygreeuser;
                private int fourmreplaygree;

                public String getFourmreplayid() {
                    return fourmreplayid;
                }

                public void setFourmreplayid(String fourmreplayid) {
                    this.fourmreplayid = fourmreplayid;
                }

                public String getFourmreplaytitle() {
                    return fourmreplaytitle;
                }

                public void setFourmreplaytitle(String fourmreplaytitle) {
                    this.fourmreplaytitle = fourmreplaytitle;
                }

                public String getFourmreplaytime() {
                    return fourmreplaytime;
                }

                public void setFourmreplaytime(String fourmreplaytime) {
                    this.fourmreplaytime = fourmreplaytime;
                }

                public String getForumid() {
                    return forumid;
                }

                public void setForumid(String forumid) {
                    this.forumid = forumid;
                }

                public String getUserid() {
                    return userid;
                }

                public void setUserid(String userid) {
                    this.userid = userid;
                }

                public String getPid() {
                    return pid;
                }

                public void setPid(String pid) {
                    this.pid = pid;
                }

                public String getNickname() {
                    return nickname;
                }

                public void setNickname(String nickname) {
                    this.nickname = nickname;
                }

                public String getUserphoto() {
                    return userphoto;
                }

                public void setUserphoto(String userphoto) {
                    this.userphoto = userphoto;
                }

                public String getFourmreplaygreeuser() {
                    return fourmreplaygreeuser;
                }

                public void setFourmreplaygreeuser(String fourmreplaygreeuser) {
                    this.fourmreplaygreeuser = fourmreplaygreeuser;
                }

                public int getFourmreplaygree() {
                    return fourmreplaygree;
                }

                public void setFourmreplaygree(int fourmreplaygree) {
                    this.fourmreplaygree = fourmreplaygree;
                }
            }
        }
    }
}
